home *** CD-ROM | disk | FTP | other *** search
/ Programming Microsoft Visual Basic .NET / Programming Microsoft Visual Basic .NET (Microsoft Press)(X08-78517)(2002).bin / setup / vbnet / 25 user and custom controls / customcontrolsdemo / webform1.aspx < prev   
Encoding:
ASP.NET Web Form  |  2002-03-19  |  2.9 KB  |  53 lines

  1. <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="CustomControlsDemo.WebForm1"%>
  2. <%@ Register TagPrefix="cc1" Namespace="CustomControlLibrary" Assembly="CustomControlLibrary" %>
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  4. <HTML>
  5.     <HEAD>
  6.         <title>WebForm1</title>
  7.         <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0">
  8.         <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
  9.         <meta name="vs_defaultClientScript" content="JavaScript">
  10.         <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  11.     </HEAD>
  12.     <body>
  13.         <form id="Form1" method="post" runat="server">
  14.             <H1>Custom Control Demo</H1>
  15.             <P>This form contains one instance of all the controls defined in the 
  16.                 CustomControlLibrary DLL.
  17.             </P>
  18.             <P> </P>
  19.             <P>The <STRONG>FirstControl</STRONG> control worls much like a default push button. 
  20.                 It is just an example of how you can implement a property and override the 
  21.                 Render method.</P>
  22.             <P>
  23.                 <cc1:FirstControl id="FirstControl1" runat="server" Text="ABC"></cc1:FirstControl></P>
  24.             <P>The <STRONG>ComboBoxEx</STRONG> control works like a regular DropDownList 
  25.                 control, and demonstrates how you can create controls that support the 
  26.                 AutoPostBack property and retrieve the new value when a postback occurs.</P>
  27.             <P>
  28.                 <cc1:ComboBoxEx id="ComboBoxEx1" runat="server" Width="232px" BackColor="#80FF80"></cc1:ComboBoxEx>  
  29.                 <asp:Label id="lblSelIndex" runat="server" ForeColor="Red"></asp:Label></P>
  30.             <P>The <STRONG>TableControl</STRONG> control is mainly used to implement an 
  31.                 assortment of properties and see how they appear in the Properties window. Most 
  32.                 of these custom properties, such as CellFont, CellBorderStyle, ImageUrl, and 
  33.                 CellStyle, are ignored in the HTML text generation.</P>
  34.             <P>
  35.                 <cc1:TableControl id="TableControl1" runat="server" Width="263px" Height="118px" BorderColor="White" CellBorderStyle="Dotted"></cc1:TableControl></P>
  36.             <P>The <STRONG>NavigateRibbon</STRONG> control shows how you can have a custom 
  37.                 control do a postback and trap the event on the server side.</P>
  38.             <P>
  39.                 <cc1:NavigateRibbon id="NavigateRibbon1" runat="server"></cc1:NavigateRibbon>   
  40.                 <asp:Label id="lblPageNumber" runat="server" ForeColor="Red"></asp:Label></P>
  41.             <P>The <STRONG>Multiplier</STRONG> control is an example of a composite control 
  42.                 that builds on the rendering features of other, simpler Web Forms controls.</P>
  43.             <P>
  44.                 <cc1:Multiplier id="Multiplier1" runat="server" Width="221px"></cc1:Multiplier></P>
  45.             <P>The <STRONG>MultiplierEx</STRONG> control is similar to the previous one, but 
  46.                 performs the multiplication on the client if possible.</P>
  47.             <P>
  48.                 <cc1:MultiplierEx id="MultiplierEx1" runat="server" Width="220px"></cc1:MultiplierEx></P>
  49.             <P> </P>
  50.         </form>
  51.     </body>
  52. </HTML>
  53.